﻿#ifndef COMPANYNETWORKACCESSMANAGER_H
#define COMPANYNETWORKACCESSMANAGER_H

#include "basenetworkaccessmanager.h"
#include "company.h"

class CompanyNetworkAccessManager : public BaseNetworkAccessManager
{
    Q_OBJECT
public:
    explicit CompanyNetworkAccessManager(QObject *parent = nullptr);

    void addCompany(QString username, QString companyName, QString contact);

    void updateCompany(
            QString username,
            QString companyId,
            QString taxRate,
            QString companyName,
            QString contact,
            QString tel,
            QString fax,
            QString website,
            QString email,
            QString province,
            QString city,
            QString district,
            QString address,
            QString account,
            QString introduction,
            QString ticketCompanyName,
            QString taxNum,
            QString bank,
            QString ticketAccount,
            QString ticketTel,
            QString ticketAddress);

    void queryCompany(QString username, QString companyId);

    void joinCompany(QString username, QString companyId);

    void updateCategory(Company::CategoryType categoryType, QString companyId, QString category);

    void updateCategory(
            Company::CategoryType categoryType,
            QString username,
            QString companyId,
            QString oldPrimaryDirectory,
            QString oldSecondaryDirectory,
            QString newPrimaryDirectory,
            QString newSecondaryDirectory);

    void deleteCategory(
            Company::CategoryType categoryType,
            QString username,
            QString companyId,
            QString primaryDirectory,
            QString secondaryDirectory);

    void updateCompanyData(QString username, QString companyId);

    void homeCount(
            int type,
            QString username,
            QString companyId,
            double oldValue,
            double countValue);
signals:

public slots:
};

#endif // COMPANYNETWORKACCESSMANAGER_H
